#pragma once
#include "Screen.h"
#include "MovingObject.h"
#define HIGH_BULLET 50
class Bullet:public MovingObject
{
protected: 
	float _firstY;
	float _timeAnimation;
	float _timeStartAnimation;
	Sprite *_spriteBullet;
public:
	Bullet(void);
	Bullet(int x, int y, int Width, int Height, float vx, float vy, int deltaTime, LPD3DXSPRITE spriteHandler, LPDIRECT3DTEXTURE9 image);
	Bullet(float x, float y, float vx, float vy, int deltaTime,int resourceName,CResourceManager* rm);
	~Bullet();
	void SetXY(float _eX,float _eY);
	void SetVX(float vx);
	void SetVY(float vy);
	void SetTimeAnimation(float _time);
	void Move();
	void Render();
};